package com.webchat.chat.dao;

import com.webchat.chat.core.Mapper;
import com.webchat.chat.model.ChatRecord;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface ChatRecordMapper extends Mapper<ChatRecord> {

    List<ChatRecord> findNeedAuditMessageByTenantCode(String tenantCode);

    List<ChatRecord> findChatRecordByInfo(ChatRecord chatRecord);

    List<ChatRecord> findByRoomId(@Param("roomId") String roomId, @Param("endTime") Date endTime);

    List<ChatRecord> getResource();

    List<ChatRecord> getTarget(ChatRecord chatRecord);
}